package shopping.stock.call.configuration;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 这是基础 configuration 配置
 *
 * @author lihh
 */
@Configuration
public class BaseConfiguration {
  
  /**
   * 构建 RestTemplate 实例
   *
   * @return restTemplate 实例
   * @author lihh
   */
  @LoadBalanced
  @Bean
  public RestTemplate restTemplate() {
    return new RestTemplate();
  }
}
